Skip to main content

apcupsd through 3.14.14 discloses uninitialized stack memory in getupsvar() in src/cgi/upsfetch.c (used by upsstats.cgi, multimon.cgi, and… (CVE-2026-103436)

0
Medium
Published: 09/30/2026 (09/30/2026, 16:17:00 UTC)
Source: GCVE Database
Product: apcupsd

Description

A vulnerability in apcupsd through version 3.14.14 causes uninitialized stack memory disclosure in the getupsvar() function within src/cgi/upsfetch.c. This affects CGI scripts such as upsstats.cgi, multimon.cgi, and upsfstats.cgi. When a STATUS line has fewer than three whitespace-separated tokens, sscanf does not assign a value to the destination buffer, but the function returns success, leading to uninitialized memory being printed in the HTTP response. The CVSS score is 3.7, indicating a medium severity issue.

CVSS v3.1

Score 3.7low

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

Ubuntu:16.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=xenial
Affected versions
=3.14.12-1.1
Ubuntu:18.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=bionic
Affected versions
=3.14.14-0.3=3.14.14-1=3.14.14-2
Ubuntu:20.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=focal
Affected versions
=3.14.14-3=3.14.14-3build1
Ubuntu:22.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=jammy
Affected versions
=3.14.14-3.1=3.14.14-3.1build1
Ubuntu:24.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=noble
Affected versions
=3.14.14-3.1build1=3.14.14-3.1build2
Ubuntu:26.10more threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=stonking
Affected versions
=3.14.14-7=3.14.14-7build1
Ubuntu:26.04:LTSmore threats →ghsa
apcupsd
pkg:deb/ubuntu/apcupsd?arch=source&distro=resolute
Affected versions
=3.14.14-5=3.14.14-6=3.14.14-7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 22:43:07 UTC

Technical Analysis

The apcupsd software versions up to and including 3.14.14 contain a vulnerability in the getupsvar() function located in src/cgi/upsfetch.c. This function is used by CGI scripts like upsstats.cgi, multimon.cgi, and upsfstats.cgi. The flaw occurs when the matched STATUS line has fewer than three whitespace-separated tokens; the sscanf call with format "%*s %*s %s" performs no assignment to the 'answer' buffer but returns success. Consequently, the caller prints the uninitialized stack memory content of 'answer' in the HTTP response, potentially disclosing sensitive information.

Potential Impact

The vulnerability results in the disclosure of uninitialized stack memory through HTTP responses generated by affected CGI scripts. This could leak sensitive information present in stack memory at the time of the request. The CVSS score of 3.7 reflects a low impact on confidentiality with no impact on integrity or availability. There is no indication of known exploits in the wild.

Mitigation Recommendations

No vendor advisory or patch information is provided in the data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider restricting access to the affected CGI scripts or disable them if not needed to reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-103436
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f4f62cdf04f656657601

Added to database: 10/17/2026, 22:21:42 UTC

Last enriched: 10/17/2026, 22:43:07 UTC

Last updated: 10/17/2026, 22:43:07 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses