Vulnerabilities in pkg:pypi/aptdaemon

PACKAGE
Advisory Identifier: GHSA-wpmr-q825-x4c6
Advisory Summary

CVE-2020-15703 is a MODERATE (CVSS 4.0) aptdaemon information disclosure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Aptdaemon libraries in the PyPI ecosystem. The issue involves aptdaemon information disclosure via improper input validation in transaction class. Remediation is available by upgrading affected packages to version 1.1.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/aptdaemon

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/aptdaemon. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wpmr-q825-x4c6 CVE-2020-15703 MODERATE aptdaemon Information Disclosure via Improper Input Validation in Transaction class

CVE-2020-15703 at a Glance

CVE Identifier CVE-2020-15703
GHSA Identifier GHSA-wpmr-q825-x4c6
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Aptdaemon
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2020-15703

To remediate this vulnerability, upgrade all affected Aptdaemon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aptdaemon fixed: 1.1.1
pip install aptdaemon>=1.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show aptdaemon

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2020-15703, inspect your installed packages using pip:

pip show aptdaemon

Analyze the terminal output to locate any version of Aptdaemon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.

Note: The pip show aptdaemon command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Aptdaemon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There is no input validation on the Locale property in an apt transaction. An unprivileged user can supply a full path to a writable directory, which lets aptd read a file as root. Having a symlink in place results in an error message if the file exists, and no error otherwise. This way an unprivileged user can check for the existence of any files on the system as root.

CVE-2020-15703 Affected Aptdaemon Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
aptdaemon
PyPI
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2020-15703?
CVE-2020-15703 is a security vulnerability in Aptdaemon involving aptdaemon Information Disclosure via Improper Input Validation in Transaction class under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Aptdaemon versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: aptdaemon.
What version fixes CVE-2020-15703?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aptdaemon affected?
Yes, aptdaemon is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of CVE-2020-15703?
CVE-2020-15703 has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2020-15703?
CVE-2020-15703 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2020-15703?
Run the dependency tree command: 'pip show aptdaemon'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wpmr-q825-x4c6",
  "modified" : "2023-08-07T19:59:14Z",
  "published" : "2022-05-24T17:32:47Z",
  "aliases" : [ "CVE-2020-15703" ],
  "summary" : "aptdaemon Information Disclosure via Improper Input Validation in Transaction class",
  "details" : "There is no input validation on the Locale property in an apt transaction. An unprivileged user can supply a full path to a writable directory, which lets aptd read a file as root. Having a symlink in place results in an error message if the file exists, and no error otherwise. This way an unprivileged user can check for the existence of any files on the system as root.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "aptdaemon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15703"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1888235"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/linuxmint/aptdaemon"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/linuxmint/aptdaemon/blob/4d24cb61575ac6fbee8d5e61ef933e6093ee0a2e/debian/patches/CVE-2020-15703.patch"
  }, {
    "type" : "WEB",
    "url" : "https://ubuntu.com/security/notices/USN-4537-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.eyecontrol.nl/blog/the-story-of-3-cves-in-ubuntu-desktop.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-07T19:59:14Z",
    "nvd_published_at" : "2020-10-31T04:15:00Z"
  }
}