{"id":"UBUNTU-CVE-2026-103436","details":"apcupsd through 3.14.14 discloses uninitialized stack memory in getupsvar() in src/cgi/upsfetch.c (used by upsstats.cgi, multimon.cgi, and upsfstats.cgi. On the single-field path, when the matched STATUS line has fewer than three whitespace-separated tokens, sscanf(\"%*s %*s %s\", answer) performs no assignment but the function returns success, and thus the caller prints the uninitialized destination buffer into the HTTP response.","modified":"2026-10-02T22:30:17.358078126Z","published":"2026-10-02T00:00:00Z","upstream":["CVE-2026-103436"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-103436"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-103436"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2493140"},{"type":"REPORT","url":"https://github.com/therealbstern/apcupsd/blob/224d19d5faa508d04267f6135fe53d50800550de/src/cgi/upsfetch.c#L240"},{"type":"REPORT","url":"https://sourceforge.net/projects/apcupsd/"}],"affected":[{"package":{"name":"apcupsd","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.12-1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.14.12-1.1","binary_name":"apcupsd"},{"binary_name":"apcupsd-cgi","binary_version":"3.14.12-1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}},{"package":{"name":"apcupsd","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.14-0.3","3.14.14-1","3.14.14-2"],"ecosystem_specific":{"binaries":[{"binary_name":"apcupsd","binary_version":"3.14.14-2"},{"binary_name":"apcupsd-cgi","binary_version":"3.14.14-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}},{"package":{"name":"apcupsd","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.14-3","3.14.14-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"apcupsd","binary_version":"3.14.14-3build1"},{"binary_name":"apcupsd-cgi","binary_version":"3.14.14-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}},{"package":{"name":"apcupsd","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.14-3.1","3.14.14-3.1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.14.14-3.1build1","binary_name":"apcupsd"},{"binary_name":"apcupsd-cgi","binary_version":"3.14.14-3.1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}},{"package":{"name":"apcupsd","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.14-3.1build1","3.14.14-3.1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"apcupsd","binary_version":"3.14.14-3.1build2"},{"binary_name":"apcupsd-cgi","binary_version":"3.14.14-3.1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}},{"package":{"name":"apcupsd","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/apcupsd?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.14.14-5","3.14.14-6","3.14.14-7"],"ecosystem_specific":{"binaries":[{"binary_name":"apcupsd","binary_version":"3.14.14-7"},{"binary_version":"3.14.14-7","binary_name":"apcupsd-cgi"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-103436.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}