- Package:
- src:network-manager-vpnc
- Source:
- src:network-manager-vpnc
- Submitter:
- Salvatore Bonaccorso
- Date:
- 2026-11-24 12:24:02 UTC
- Severity:
- normal
- Tags:
Hi, The following vulnerabilities were published for network-manager-vpnc. CVE-2026-91840[0]: | username newline injection reaches a root password helper CVE-2026-91841[1]: | Incomplete fix of CVE-2018-10900 If you fix the vulnerabilities please also make sure to include the CVE (Common Vulnerabilities & Exposures) ids in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2026-91840 https://www.cve.org/CVERecord?id=CVE-2026-91840 https://gitlab.gnome.org/Archive/NetworkManager-vpnc/-/work_items/19 [1] https://security-tracker.debian.org/tracker/CVE-2026-91841 https://www.cve.org/CVERecord?id=CVE-2026-91841 https://gitlab.gnome.org/Archive/NetworkManager-vpnc/-/work_items/20 Regards, Salvatore
Sumit Verma has sent you an email via Gmail confidential mode: [image: Gmail logo]Re: Bug#1148113: network-manager-vpnc: CVE-2026-91840 CVE-2026-91841 - patch (newline validation) <https://confidential-mail.google.com/msg/AG1QAN14F3IHKPwTkwETyz6aErNfpjAi857bxddbCQG2pYKtqX4Ke5Ieih3bkELxF3Q8o_e72U_UyrQs1HJ4AcJYdRL4veATVipQ5TP8qCCrCefcBTqJClo6GTkhh6hRewpOG1nMQQHDNbTquOJdjKs6deytq4Dlag==> This message was sent on Nov 6, 2026 at 9:03:39 AM PST You can open it by clicking the link below. This link will only work for 1148113@bugs.debian.org. View the email <https://confidential-mail.google.com/msg/AG1QAN14F3IHKPwTkwETyz6aErNfpjAi857bxddbCQG2pYKtqX4Ke5Ieih3bkELxF3Q8o_e72U_UyrQs1HJ4AcJYdRL4veATVipQ5TP8qCCrCefcBTqJClo6GTkhh6hRewpOG1nMQQHDNbTquOJdjKs6deytq4Dlag==> Gmail confidential mode gives you more control over the messages you send. The sender may have chosen to set an expiration time, disable printing or forwarding, or track access to this message. Learn more <https://support.google.com/mail/answer/7674059> Gmail: Email by Google Use is subject to the Google Privacy Policy <https://myaccount.google.com/privacypolicy?hl=en> Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA You have received this message because someone sent you an email via Gmail confidential mode. [image: Google logo]
Hi, [...] Please provide your message to us in plain email. Regards, Salvatore
Hi Salvatore, Sorry about that: my previous mail went out in Gmail confidential mode, so it did not reach the bug log in readable form. Here it is again as plain mail, with the patch attached. A patch for both CVEs is attached. Upstream is archived and marked end of life, so there is no upstream fix to pull; this is a Debian-side change. Root cause ---------- nm-vpnc-service serialises VPN settings into vpnc's line-oriented config. validate_one_property() rejects newline and carriage return, but only in the ITEM_TYPE_STRING and ITEM_TYPE_SECRET branches (the 1.2.6 fix for CVE-2018-10900). Two values reach the writer without that check: - CA-File (ITEM_TYPE_PATH): its branch checks only that the path is non-empty, absolute and existing. A newline in the path splits into extra vpnc directives. This is CVE-2026-91841, described upstream as an incomplete fix of CVE-2018-10900. - The top-level NMSettingVpn:user-name: nm_vpnc_properties_validate() walks the data items and the secrets, but not the connection's user-name, which nm_vpnc_config_write() writes out as "Xauth username". This is CVE-2026-91840. A newline in either value injects directives such as "Password helper", which vpnc runs as root during the xauth exchange, so an unprivileged local user who can activate a private profile gets root. The reporter's writeup in the two upstream issues has the full chain. I confirmed both gaps by reading the source of 1.2.8-4 (bookworm), 1.4.0-2 (trixie) and 1.4.0-4 (sid/forky): in all three the ITEM_TYPE_PATH branch has no newline check, and the user-name is written without validation. The patch --------- It adds the missing newline rejection to the ITEM_TYPE_PATH branch and validates the top-level user-name in nm_vpnc_properties_validate(), using the same strchr check the STRING/SECRET branch already uses. The attached patch is one file (src/nm-vpnc-service.c). It applies cleanly to 1.4.0-2 and 1.4.0-4, and with a -3 line offset to 1.2.8-4. What I did and did not test --------------------------- The patched source compiles cleanly (no warnings in the file) against the libnm and glib headers, for both the 1.2.8 and 1.4.0 trees. I did not run a full package build: automake and some of the -dev build-dependencies are not currently installable here. I also did not build an exploit to demonstrate the escalation; the fix mirrors the existing, already-accepted CVE-2018-10900 rejection in the same function, and legitimate paths and user names contain no newlines. Given that upstream is EOL and GNOME's advisory recommends migrating away from this plugin, you may prefer to remove the package rather than carry a patch. Either way the tracker entries have no fix reference, and this at least gives a minimal one if you keep the package. Regards, Sumit Verma
Dear submitter, as the package network-manager-vpnc has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1154723 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)