cve.bz

CVE-2021-3882 ledgersmb ledgersmb: Missing Encryption of Sensitive Data

6.8 mediumExploit referenceEPSS 1.1%Fix available

Medium (6.8) in ledgersmb ledgersmb. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
LedgerSMB does not set the 'Secure' attribute on the session authorization cookie when the client uses HTTPS and the LedgerSMB server is behind a reverse proxy. By tricking a user to use an unencrypted connection (HTTP), an attacker may be able to obtain the authentication data by capturing network traffic. LedgerSMB 1.8 and newer switched from Basic authentication to using cookie authentication with encrypted cookies. Although an attacker can't access the information inside the cookie, nor the password of the user, possession of the cookie is enough to access the application as the user from which the cookie has been obtained. In order for the attacker to obtain the cookie, first of all the server must be configured to respond to unencrypted requests, the attacker must be suitably positioned to eavesdrop on the network traffic between the client and the server *and* the user must be tricked into using unencrypted HTTP traffic. Proper audit control and separation of duties limit Integrity impact of the attack vector. Users of LedgerSMB 1.8 are urged to upgrade to known-fixed versions. Users of LedgerSMB 1.7 or 1.9 are unaffected by this vulnerability and don't need to take action. As a workaround, users may configure their Apache or Nginx reverse proxy to add the Secure attribute at the network boundary instead of relying on LedgerSMB. For Apache, please refer to the 'Header always edit' configuration command in the mod_headers module. For Nginx, please refer to the 'proxy_cookie_flags' configuration command.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-311 Missing Encryption of Sensitive Data
CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
OWASP Top 10
A02:2025 Security Misconfiguration, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3882 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3882?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3882?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3882 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ledgersmb/ledgersmbfrom 1.8.0 before unspecified
ledgersmb/ledgersmbthrough 1.8.21

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSledgersmb1.6.33+ds-1ubuntu0.1UBUNTU-CVE-2021-3882 USN-7647-1
Ubuntu24.04:LTSledgersmb1.6.33+ds-2.1ubuntu0.1UBUNTU-CVE-2021-3882 USN-7647-1
UbuntuPro:16.04:LTSledgersmb1.3.46-1ubuntu0.1~esm1USN-7647-1
UbuntuPro:18.04:LTSledgersmb1.4.42+ds-1ubuntu0.1~esm1USN-7647-1
UbuntuPro:20.04:LTSledgersmb1.6.9+ds-1ubuntu0.1+esm1UBUNTU-CVE-2021-3882 USN-7647-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-102 Session Sidejacking Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-311 (14).

References

Check your stackJSON