CVE-2026-103436
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| apcupsd | apcupsd | 0 <= 3.14.14 | affected |
Weaknesses
- CWE-457: CWE-457 Use of Uninitialized Variable
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2493140
- https://github.com/therealbstern/apcupsd/blob/224d19d5faa508d04267f6135fe53d50800550de/src/cgi/upsfetch.c#L240
- https://sourceforge.net/projects/apcupsd/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.