SecurityContext

CVE-2026-45272: MyBooks - Command Injection

  • Cve: CVE-2026-45272
  • Name: MyBooks - Command Injection
  • Description: MyBooks is an enhanced and easy-to-use personal ebook management web server also known as Talebook. In 3.41.2 and earlier, the AdminSettings.post handler in webserver/handlers/admin.py accepts SOCIAL_AUTH key names without validating quotes or newline characters, and SettingsLoader.dumpfile in webserver/loader.py concatenates those names into the generated Python source file auto.py without escaping them. An administrator can submit a crafted SOCIAL_AUTH key name that closes the settings dictionary and injects arbitrary Python statements. The application later executes those statements because SettingsLoader.loadfile imports auto.py as a module, and setting autoreload to true invokes restart_async so a process supervisor restarts the service and triggers the import. Successful exploitation executes commands with the privileges of the application service account and can disclose data, modify files, establish persistence, or disrupt the service. Related authorization and registration vulnerabilities can reduce the effective privilege requirement in a chained attack, but the standalone vulnerability requires administrator access. This issue is fixed in version 3.42.0.
  • Impact: Administrators can execute arbitrary code with application service privileges, leading to data disclosure, file modification, persistence, or service disruption.
  • Remediation: Upgrade to version 3.42.0 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution, information_disclosure, data_tampering, denial_of_service
  • Requirement type: logged_in
  • Requirements: Attacker must have administrator access
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.4
  • Cvss vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00501
  • Epss percentile: 0.43742
  • Assignee: [email protected]
  • Published at: 2026-08-19T15:17:04Z
  • Age in days: 97
  • Modified at: 2026-09-09T21:13:25Z
  • References total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-45272
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/PoxenStudio/mybooks/commit/a1780c98b00566af7da2fc099fe38500efc02e92
https://github.com/PoxenStudio/mybooks/releases/tag/3.42.0
https://github.com/PoxenStudio/mybooks/security/advisories/GHSA-4wfr-9gcv-j638

Projects

RepositoryLink kindsIndexedUrl
PoxenStudio/mybookscommit, fix, releases, security_advisoryyes/v1/repositories/PoxenStudio/mybooks

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts