Package: awscli
Version: 2.23.6-1
Severity: important
Tags: security upstream

awscli includes a bundled certificate store:
root@ec162dd99925:~# dpkg -L awscli | grep pem
/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem

If both of ca-certificates and python3-certifi are not installed, it will
use this bundled certificate store to authenticate TLS endpoints:

root@ec162dd99925:~# dpkg -s ca-certificates
dpkg-query: package 'ca-certificates' is not installed and no information is 
available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
root@ec162dd99925:~# dpkg -s python3-certifi
dpkg-query: package 'python3-certifi' is not installed and no information is 
available
Use dpkg --info (= dpkg-deb --info) to examine archive files.

root@ec162dd99925:~# aws sts get-caller-identity
{
    "UserId": "AROAW32WRALYCRFWKOVCL:botocore-session-1794836848",
    "Account": "<<redacted>>",
    "Arn": 
"arn:aws:sts::<<redacted>>:assumed-role/<<redacted>>/botocore-session-1794836848"
}

root@ec162dd99925:~# mv 
/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem /root/
root@ec162dd99925:~# aws sts get-caller-identity

SSL validation failed for https://sts.us-west-2.amazonaws.com/ [Errno 2] No 
such file or directory

If both of python3-certifi and ca-certificates are installed, the system-wide
certificates will be used:

root@ec162dd99925:~# rm -f 
/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem && dpkg -l 
python3-certifi ca-certificates && ls -l 
/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem ; aws sts 
get-caller-identity
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version          Architecture Description
+++-===============-================-============-============================================================================
ii  ca-certificates 20250419+deb13u1 all          Common CA certificates
ii  python3-certifi 2025.1.31+ds-1   all          root certificates for 
validating SSL certs and verifying TLS hosts (python3)
ls: cannot access '/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem': 
No such file or directory
{
    "UserId": "AROAW32WRALYCRFWKOVCL:botocore-session-1794836848",
    "Account": "<<redacted>>",
    "Arn": 
"arn:aws:sts::<<redacted>>:assumed-role/<<redacted>>/botocore-session-1794836848"
}


-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.117+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages awscli depends on:
ii  groff-base                1.23.0-9
ii  python3                   3.13.5-1
ii  python3-awscrt            0.24.0+dfsg-1
ii  python3-colorama          0.4.6-4
ii  python3-cryptography      43.0.0-3+deb13u1
ii  python3-dateutil          2.9.0-4
ii  python3-distro            1.9.0-1
ii  python3-docutils          0.21.2+dfsg-2
ii  python3-jmespath          1.0.1-1
ii  python3-prompt-toolkit    3.0.51-2
ii  python3-pyasn1            0.6.1-1+deb13u3
ii  python3-ruamel.yaml       0.18.10+ds-1
ii  python3-ruamel.yaml.clib  0.2.12+ds-1+b1
ii  python3-urllib3           2.3.0-3+deb13u2
ii  python3-zipp              3.21.0-1

awscli recommends no packages.

awscli suggests no packages.

-- no debconf information

Reply via email to