Gentoo Logo

SWORD: Shell command injection


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200803-06 / sword
Release Date March 03, 2008
Latest Revision March 03, 2008: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-text/sword < 1.5.8-r2 >= 1.5.8-r2 All supported architectures

Related bugreports: #210754


Insufficient input checking in SWORD may allow shell command injection.

2.  Impact Information


SWORD is a library for Bible study software.


Dan Dennison reported that the script used in SWORD does not properly sanitize shell meta-characters in the "range" parameter before processing it.


A remote attacker could provide specially crafted input to a vulnerable application, possibly resulting in the remote execution of arbitrary shell commands with the privileges of the user running SWORD (generally the web server account).

3.  Resolution Information


There is no known workaround at this time.


All SWORD users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-text/sword-1.5.8-r2"

4.  References


Page updated March 03, 2008

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.